./clean.sh

cp control test

../out/smolen test

testsize=$(wc -c <test)
smolsize=$(wc -c <test.smol)
if [ $smolsize -ge $testsize ]; then
	ls -lh test test.smol
	echo Roundtrip - FAIL
	exit 1
fi

rm test
../out/smolen test.smol

if diff control test; then
	echo Roundtrip - PASS
else
	echo Roundtrip - FAIL
	exit 2
fi


